const express = require('express')
const router = express.Router()//路由模块
const GetInfo = require('./controller/GetInfo')
const AddInfo = require('./controller/AddInfo')
const DeleteInfo = require('./controller/DeleteInfo')
const UpdateInfo = require('./controller/UpdateInfo')

router.get('/getStdInfo', GetInfo.getStdInfo)

router.get('/getCourseInfo',GetInfo.getCourseInfo)

router.get('/getSCInfo', GetInfo.getSCInfo)

router.post('/addStudent', AddInfo.addStudent)

router.post('/addCourse', AddInfo.addCourse)

router.post('/addSC', AddInfo.addSC)

router.post('/deleteStudent', DeleteInfo.deleteStudent)

router.post('/deleteCourse', DeleteInfo.deleteCourse)

router.post('/deleteSC', DeleteInfo.deleteSC)

router.post('/updateStudent', UpdateInfo.updateStudent)

router.post('/updateCourse', UpdateInfo.updateCourse)

router.post('/updateSC', UpdateInfo.updateSC)

module.exports = router